<extend name="Base/common"/>
<block name="header">
    <include file="Public/_nav"/>
    <link type="text/css" rel="stylesheet" href="__CSS__/wckc.css">
    <script type="text/javascript" src="__JS__/common.js"></script>
</block>


<block name="body">
    <!-- 左侧菜start -->
    <div class="col-xs-2">  
     <include file="Public/sidebar"  /> 
    </div>
    <!-- 左侧菜end -->


    <!-- 右侧菜start -->
    <div class="col-xs-10"> 
    <div class="row content ">
         <h1 class="text-center">严谨 好学 求实 创新 </h1>  
         <div class="col-xs-10">
      <div class="col-md-2">
        <a href="__SELF__">  <h5> 学员成绩上报</h5></a>
      </div>
       <div class="col-md-3">
        <form method="post" action="{:U('My/upscore')}" name="cid">
        <select name="cid" class="form-control" role="form" onchange="this.form.submit()">
               <option value={$_cur.cid} >{$_cur.cname}  [{$_cur.teacher}]</option>                
               <foreach name="list" item="vo">
                <option value="{$vo.cid}">{$vo.cname} - [{$vo.teacher}]</option>
                </foreach>
            </select>
            </form>
        </div>
        <div class="col-md-4">请先选择任教的班级，再填写成绩上报</div>
        </div>
           <div class="clearfix"></div>
        <!--数据表格开始-->
        <div class="col-xs-11">
        <form method="post" action="{:U('doPost')}" 
         class="form-horizontal" role="form" onsubmit="return  confirm('你确定要提交这些学生的成绩吗?')" >
        <table class="table table-bordered" width="80%">
        <thead>
            <tr>
             <th class="blue text-center">序号</th>
             <th class="blue text-center">班级</th><th class="blue text-center">原班级学号</th>
             <th class="blue text-center">姓名</th><th class="blue text-center">性别</th><th width="8%" class="blue text-center">成绩</th><th class="blue text-center">是否优秀学员</th><th class="blue text-center">更新日期</th>       
    		    </tr>
            </thead>
            <volist name="student" id="st" >
            <tr style="text-align:center;">
                <input type="hidden" name="sid[{$i}]" value="{$st.sid}"><td>{$i}</td><td>{$st.class}</td>
    			<td >{$st.code}</td><td>{$st.name}</td><td>{$st.sex}</td>
    			<td width="8%">
               <div class="col-xs-1">
    			       <select name="score[{$i}]"  class="input-small">
    			          <option >{$st.score}</option>
                    <option value="A">A</option>
                    <option value="B">B</option>
                    <option value="C">C</option>
                    <option value="D">D</option>				
    			        </select>
                </div>
                </td>
    			<td>
    			    <php>
                $selstr[$i] = ($st['outstand'])?' selected':'';
               </php>
              <select name="out[{$i}]" class="input-small" >                 
    			    <option value=0>否</option>
    				<option value=1 {$selstr[$i]}>是</option>    				
    			</select>
    			<!-- 是<input id="id_type_{$i}" name="out[{$i}]" value="1" type="radio" checked/>否<input id="id_type_{$i}" name="out[{$i}]" value="0" type="radio" /> --></td>
    			<td><if condition="($st.scoreuptime eq 0)"> &nbsp <else/>
                      {$st.scoreuptime|date='Y-m-d',###}</if></td>
            </volist>
        		<tr>
                <td colspan="8">
                <input type="hidden" name='cid' value={$Think.post.cid}>
                <input type="submit" class="btn btn-primary" value="提交">

                </td>
            </tr>
        	
            </table>
             </div>
           
      </form>
    <!--数据表格结束-->
    </div>
    </div></div></div>
</block>